<?php
/**
 * $Id: args.php 12 2010-11-28 20:02:53Z LEON $
 * $Author: LEON $
 * $LastChangedDate: 2010-11-28 20:02:53 +0000 (Sun, 28 Nov 2010) $
 * $Revision: 12 $
 */
namespace cmFly\system;
class args extends \ArrayIterator {
    public function __construct($args) {
	$this->set_args($args);
    }
    public function set_args($args) {
	parent::__construct($args);
    }
    public function first() {
	return $this->current();
    }
    public function shift() {
	if($this->valid()) {
	    $value=$this->current();
	    $this->offsetUnset($this->key());
	    return $value;
	}
	return false;
    }
}
?>